<?php
// +----------------------------------------------------------------------
// | KITEGO-Admin「开箱即用」「人人全栈」
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2024 https://www.kitego.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed KITEGO并不是自由软件，未经许可不能去掉KITEGO相关版权
// +----------------------------------------------------------------------
// | Author: KITEGO Team <bd@kitego.cn>
// +----------------------------------------------------------------------

return [
    // 敏感字段过滤，日志中会替换为***
    'sensitive_fields' => [
        'password', 'pwd', 'token', 'secret', 'key', 'credit_card', 'bank_card', 'id_card'
    ],

    // 请求头记录白名单，只记录这些头部信息
    'keep_headers' => [
        'accept', 'content-type', 'authorization',
        'user-agent', 'referer', 'x-requested-with'
    ],

    // 是否记录响应内容
    'record_response' => true,

    // 响应内容最大长度限制
    'max_response_length' => 2000,

    // 慢请求阈值(毫秒)，超过此值会记录警告日志
    'slow_request_threshold' => 1000,

    // 日志保留天数，超过此天数的日志会被自动清理
    'log_keep_days' => 90,
];